
<%--标签 --%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <link rel="stylesheet"href="${staticPath}/static/plugins/font-awesome/css/font-awesome.min.css" media="all" />
<link rel="stylesheet" href="${staticPath}/static/x-admin/css/xadmin.css">
 <link rel="stylesheet" href="${staticPath}/static/layui/css/layui.css" media="all">
 <script type="text/javascript" src="${staticPath}/static/jquery/jquery-3.2.1.min.js"></script>
 <script type="text/javascript" src="${staticPath}/static/layui/layui.js"></script>

 <script type="text/javascript">
    var basePath = "${staticPath}";
 
 /*弹出层*/
/*
    参数解释：
    title   标题
    url     请求的url
    id      需要操作的数据id
    w       弹出层宽度（缺省调默认值）
    h       弹出层高度（缺省调默认值）
*/
function dream_show(title,url,w,h){
    if (title == null || title == '') {
        title=false;
    };
    if (url == null || url == '') {
        url="error/404";
    };
    if (w == null || w == '') {
        w=($(window).width()*0.9);
    };
    if (h == null || h == '') {
        h=($(window).height() - 50);																	
    };
     layer.open({
        type: 2,
        area: [w+'px', h +'px'],
        fix: false, //不固定
        maxmin: true,
        shadeClose: true,
        shade:0.4,
        title: title,
        closeBtn: 1,
        content: url,
        resize: false
    });
    layer.full(index);
}

function dream_full_show(title,url,w,h){
    if (title == null || title == '') {
        title=false;
    };
    if (url == null || url == '') {
        url="error/404";
    };
    if (w == null || w == '') {
        w=($(window).width()*0.9);
    };
    if (h == null || h == '') {
        h=($(window).height() - 50);																	
    };
     var index = layer.open({
        type: 2,
        area: [w+'px', h +'px'],
        fix: false, //不固定
        maxmin: true,
        shadeClose: true,
        shade:0.4,
        title: title,
        closeBtn: 1,
        content: url,
        resize: false
    });
    layer.full(index);
}

/*关闭弹出框口*/
function dream_close(){
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
}
</script>